package com.applcn.hello.controller;

import com.applcn.core.base.Result;
import com.applcn.world.client.WorldClient;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


/**
 * com.applcn.hello.controller
 * Description:
 *
 * @author: 大妖怪
 * @date: 2020-01-15 23:38
 */
@RestController
@RequestMapping("/hello")
@RequiredArgsConstructor
public class HelloController {

    private final WorldClient worldClient;

    @GetMapping("/test")
    public Result test(){
        return worldClient.test();
    }
}
